home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr46 / strx221.zip / REGXIMP.H < prev    next >
Text File  |  1993-03-01  |  952b  |  43 lines

  1. //
  2. // regximp.h   : regular expression implementation class interface
  3. // Author      : Roy S. Woll
  4. //
  5. // Copyright (c) 1993 by Roy S. Woll
  6. // You may distribute this source freely as long as you leave all files
  7. // in their original form, including the copyright notice as is.
  8. //
  9. // Version 2.00     10/20/92
  10. //
  11. #ifndef _REGXIMP_H
  12. #define _REGXIMP_H
  13.  
  14. #ifndef _STR_H
  15. #include "str.h"
  16. #endif
  17.  
  18.  
  19. class regXimp{
  20.    str compiledPattern;
  21.    int caseSensitive;
  22.  
  23.    const char * doccl(const char * src);
  24.  
  25.    int omatch(const char ** strp, const unsigned char * pat, 
  26.               const char * start);
  27.  
  28.    const char * patcmp(const char * str, const unsigned char * pat,
  29.                        const char * start);
  30.  
  31. public:
  32.    int error;
  33.    const char * startMatch;
  34.    const char * endMatch;
  35.  
  36.    int makepat(const char *exp);
  37.    const char * matchs(const char * str, int p_caseSensitive);
  38.  
  39.    regXimp(void);
  40. };
  41.  
  42. #endif
  43.